import {LAYOUT} from '@/router/constants';
import type {RouteRecordItem} from 'vc/src/router';
export const LINK_GREEN_BOND = '/greenBond';
export const LINK_GREEN_BOND_DETAIL = LINK_GREEN_BOND + '/bondDetail';
export const LINK_GREEN_PROJECT_DETAIL = LINK_GREEN_BOND + '/projectDetail';
const GreenBond: RouteRecordItem = {
  path: '/greenBond',
  component: LAYOUT,
  meta: {
    title: '绿色债券',
    menuIndex: 0,
    subMenuIndex: 2
  },
  children: [
    {
      path: 'bondList',
      component: () => import('@/views/modules/greenBond/bondList/index.vue'),
      meta: {
        title: '绿色债券'
      }
    },
    {
      path: 'bondRelease',
      component: () => import('@/views/modules/greenBond/bondRelease/index.vue'),
      meta: {
        title: '绿债发行人'
      }
    },
    {
      path: 'bondProject',
      component: () => import('@/views/modules/greenBond/bondProject/index.vue'),
      meta: {
        title: '绿债项目'
      }
    },
    {
      path: 'bondEvaluate',
      component: () => import('@/views/modules/greenBond/bondEvaluate/index.vue'),
      meta: {
        title: '绿债评估机构'
      }
    },
    {
      path: 'bondDetail' + '/:id',
      component: () => import('@/views/modules/greenBond/bondDetail/index.vue'),
      meta: {
        title: '绿色债券详情',
        hideMenu: true,
        hideSide: true
      }
    },
    {
      path: 'projectDetail' + '/:id',
      component: () => import('@/views/modules/greenBond/projectDetail/index.vue'),
      meta: {
        title: '绿色项目详情',
        hideMenu: true,
        hideSide: true
      }
    },
  ]
};

export default GreenBond;
